import java.util.Scanner;

public class lanq217 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a=in.nextInt();
        int[] b=new int[10000];
        for (int i = 0; i <a ; i++) {
            b[i]=in.nextInt();
        }
        for (int i = 1; i <b.length; i++) {
            for (int j = 0; j <b.length-i ; j++) {
                if(b[j]<b[j+1]){
                    int t=b[j];
                    b[j]=b[j+1];
                    b[j+1]=t;
                }
            }
        }
        for (int i = 0; i <b.length; i++) {
            if(b[i]==0)break;
            System.out.print(""+b[i]+" ");

        }
    }
}
